package io.github.talelin.latticy.service;

import io.github.talelin.latticy.dto.rule.chargePlan.ChargePlanDTO;
import io.github.talelin.latticy.model.ChargePlanDO;
import com.baomidou.mybatisplus.extension.service.IService;
import io.github.talelin.latticy.vo.ChargePlanPageVO;
import io.github.talelin.latticy.vo.PageResponseVO;

/**
 * <p>
 * 计费方案 服务类
 * </p>
 *
 * @author generator@wulongbo
 * @since 2022-08-23
 */
public interface ChargePlanService extends IService<ChargePlanDO> {

    boolean addChargePlan(ChargePlanDTO dto);


    boolean updateChargePlan(Integer id,ChargePlanDTO dto);

    boolean deleteChargePlan(Integer chargePlanId);

    ChargePlanPageVO getChargePlanById(Integer id);

    PageResponseVO<ChargePlanPageVO> getChargePlanPage(Integer page, Integer count, String name);
}
